package com.longqin.wechat.service;


public interface RedisService {
	
	/**分布式加锁
	 * @param requestId 请求id uuid
	 * @param key 锁的key
	 * @param expiresTime 超时时间
	 * @return 获取锁成功还是失败
	 */
	public boolean lock(String requestId,String key,int expiresTime);
	
	/**释放锁
	 * @param requestId uuid
	 * @param key 锁的key
	 * @return
	 */
	public boolean releaseLock(String requestId,String key);
}
